package com.example.demo.mapper;

import com.example.demo.entity.Topic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-10-08
 * Time:15:22
 */
@Mapper
public interface TopicMapper {
    //题目列表查询
    List<Topic> getTopicList(@Param("size") Integer size, @Param("offset") Integer offset);
    //题目总数查询
    int getTopicCount();
    //查询题目的标准答案和测试集合
    String getPositive(@Param("title")String title);
    Topic getTopicInfo(@Param("title")String title);
}